namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("S_SAMPLE_CHECK")]
    public partial class S_SAMPLE_CHECK
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public S_SAMPLE_CHECK()
        {
            S_SAMPLE_CHECKDETAIL = new HashSet<S_SAMPLE_CHECKDETAIL>();
            //Flow_Form = new HashSet<Flow_Form>();
        }

        [Key]
        [StringLength(40)]
        public string CHECK_ID { get; set; }

        public int? CHECK_MODE { get; set; }

        public int? CHECK_NUMBER { get; set; }

        [StringLength(40)]
        public string CHECK_USER_ID { get; set; }

        public DateTime? CHECK_TIME { get; set; }

        public int? STATUS { get; set; }

        public long? CHECK_TYPE { get; set; }

        [StringLength(300)]
        public string REMARKS { get; set; }

        public short? GET_NUMBER { get; set; }

        [StringLength(40)]
        public string TEMPLATE_ID { get; set; }

        public int? APPROVAL_STATUS { get; set; }

        public SysUser CHECK_USER { get; set; }

        public int? SAMPLE_TYPE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<S_SAMPLE_CHECKDETAIL> S_SAMPLE_CHECKDETAIL { get; set; }

        //[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        //public virtual ICollection<Flow_Form> Flow_Form { get; set; }
    }
}
